package com.yystar.user.operator.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yystar.support.base.controller.BaseController;

@Controller
public class LoginController extends BaseController {

	@RequestMapping(value="/login")
	public String login(String txtName, String txtPass) {
		if ("admin".equals(txtName) && "admin".equals(txtPass)) {
			return "main";
		}
		return "index";
	}

}
